package com.pic.others.domain.dto.user;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(description = "登录表单实体")
public class LoginFormDTO {

    @ApiModelProperty(value = "登录方式，1：密码登录,2：账号验证码登录",example = "1",required = true)
    private Integer type;

    @ApiModelProperty(value = "用户名",example = "张三")
    private String name;
    @NotNull
    @NotBlank
    @ApiModelProperty(value = "邮件",example = "2321312@qq.com")
    private String email;

    @ApiModelProperty(value = "密码",example = "123")
    private String password;

    @ApiModelProperty(value = "验证码", example = "645632")
    private String code;

    @ApiModelProperty(value = "7天免密码登录",example = "true")
    private Boolean rememberMe=false;

}
